package com.sz.sidi.util;

import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import com.sz.sidi.entity.TuserInfo;
import com.sz.sidi.exceptions.BusinessException;
import com.sz.sidi.service.IBaseService;

public class AddressController {
	public static void main(String[] arges){
		ApplicationContext appContext = new FileSystemXmlApplicationContext("/src/main/webapp/WEB-INF/spring-servlet.xml");
		IBaseService service = (IBaseService) appContext.getBean("baseService");
		try {
//			List<TuserInfo> list = service.gethbUserInfo();
//		
//		for(TuserInfo act : list){
//			System.out.println(act.getFusername());
//			System.out.println(act.getFpsw());
//			System.out.println(act.getFemail());
//		}
		TuserInfo list1 =  service.getUserInfo("1");
		 
			System.out.println(list1.getFusername());
			System.out.println(list1.getFqx());
			System.out.println(list1.getFgh());
			System.out.println(list1.getClass());
			System.out.println(list1.getFemail());
			System.out.println(list1.getFpassword());
			System.out.println(list1.getFaddress());
		} catch (BusinessException e) {
			e.printStackTrace();
		}
	}
}
